package com.itlong.cloud.user.operate;

import com.itlong.cloud.POJO.DTO.operate.OperateUserFeedbackPageDTO;
import com.itlong.cloud.POJO.VO.operate.OperateUserFeedbackVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 * 运营—APP用户-用户反馈业务处理暴露接口。
 * <desc/>
 *
 * @createDate 2017/9/25.
 */
@FeignClient(name = "user-service")
public interface IOperateUserFeedbackServiceClient {

    /**
     * <desc>
     *      反馈用户信息回复。
     * <desc/>
     *
     * @param id
     * @param  replyContent 回复内容
     * @return
     * @author shengen.T
     * @createDate 2017/9/25
     */
    @RequestMapping(path = "/appUser/userFeedback/replyUserInfo",method = RequestMethod.POST)
    Integer replyUserInfo(@RequestParam("id") String id,
                          @RequestParam("replyContent") String replyContent,
                          @RequestParam("clientShowResult") Integer clientShowResult);


     /**
      * <desc>
      *      获取反馈用户分页数据。
      * <desc/>
      *
      * @param  pageDTO 请求参数
      * @return 返回反馈用户列表
      * @author shengen.T
      * @createDate 2017/9/25
      */
    @RequestMapping(path = "/appUser/userFeedback/getFeedbackUserPage",method = RequestMethod.POST)
    Page<OperateUserFeedbackVO> getFeedbackUserPage(OperateUserFeedbackPageDTO pageDTO) throws Exception;

    /**
     * <desc>
     *      处理app用户反馈主键为空的数据
     * </desc>
     *
     * @Author Zhu.yj
     * @createDate  2020/11/27
     */
    @PostMapping("handlerFeedbackIdIsNull")
    Integer handlerFeedbackIdIsNull() throws Exception;

}
